package com.mengxuegu.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
public class HelloController {
    @ResponseBody
    @RequestMapping("/success")
    public String execute() {
        return "hello mengxuegu";
    }

    @RequestMapping("/execute")
    public String success(Map<String, Object> map) {
        map.put("name", "梦学谷");
        return "success";
    }
}
